package com.sunfeng.yygh.hosp.repository;

import com.sunfeng.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @author sunfeng
 * @date 2021/04/25 16:07
 **/

@Repository
public interface DepartmentRepository extends MongoRepository<Department,String> {


    /**
     *
     * @param depcode
     * @return
     */
    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);
}
